<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title th:text="${name} + ' - ' + ${title}">搜索列表</title>
    <link
            href="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/css/bootstrap.min.css"
            rel="stylesheet">
</head>
<body>
<div class="container">

    <div class="row">
        <div class="col-12">
        	<table class="table table-bordered text-center">
					<thead>
						<tr>
							<th scope="col">序号</th>
							<th scope="col">书名</th>
							<th scope="col">作者</th>
							<th scope="col">最后一章</th>
							<th scope="col">更新时间</th>
						</tr>
					</thead>
					<tbody>
						<tr th:each="searchPage,iterStat : ${list}">
							<th scope="row" th:text="${iterStat.count}">1</th>
							<td th:if="${searchPage.name} ne null">
								<a href="/" th:href="@{'chapter/' + ${searchPage.nameURL}}" th:text="${searchPage.name}">书名</a></td>
							<td th:if="${searchPage.author} ne null" th:text="${searchPage.author}">作者</td>
							<td th:if="${searchPage.lastChapter} ne null">
								<a href="/" th:href="@{'chapter/' + ${searchPage.lastChapter}}" th:text="${searchPage.lastChapter}">最后一章</a></td>
							<td th:if="${searchPage.lastUpdateTime} ne null" th:text="${searchPage.lastUpdateTime}">更新时间</td>
						</tr>
					</tbody>
				</table>
        </div>
    </div>
</div>
</body>
</html>